﻿@using MvcApplication2.Controllers
@if (TempData[ControllerEx.SuccessMessages] != null)
{
   
    var messages = TempData[ControllerEx.SuccessMessages] as List<string>;

    if (messages != null)
    {
    <section id="success-message">
    @foreach (var s in messages)
    {
        <div class="alert alert-success">@s</div>
    }
</section>
    }
}
@if (TempData[ControllerEx.ErrorMessages] != null)
{
    var messages = TempData[ControllerEx.ErrorMessages]
        as List<string>; if (messages != null)
    { <section id="error-message"> @foreach (var
s in messages)
                                                                      { <div class="alert alert-error">@s</div> } </section>
    }
}
